home *** CD-ROM | disk | FTP | other *** search
- Path: freenet.vcu.edu!not-for-mail
- From: damurr@freenet.vcu.edu
- Newsgroups: comp.lang.c
- Subject: Please help w/seemingly simple problem...
- Date: 9 Apr 1996 11:55:27 -0400
- Organization: Central Virginia's Free-Net
- Distribution: world
- Message-ID: <4ke19f$m6r@freenet.vcu.edu>
- NNTP-Posting-Host: freenet.vcu.edu
-
- /*
-
- I'm hoping you guys can help me here... I have NO idea what's wrong
- with this code, but I can't get it to display the second screen
- that says, " - Options Menu - ". I can't go any further because it won't
- do anything beyond the first file id screen. The IDE debugger doesn't
- help me at all.
-
- Million thanks!
-
- Regards,
- David Murr (damurr@freenet.vcu.edu - Please respond by e-mail if poss.)
-
- BTW- I'm using Borland Turbo C++ 1.0
-
- -------------------------------------------------------------------------
-
- [ SOURCE START ]
-
- -------------------------------------------------------------------------
- */
-
- /* Pre-processor directives: */
-
- #include <stdio.h>
- #include <conio.h>
- #include <panel.h>
- #include <bgl.h>
-
- /* Other #include directives to go here, but they haven't been developed
- * yet. Note that FG's scenery applets are 100% compatible with MSFS5.x
- * .BGL files to utilize the vast amount of free scenery available on the
- * Internet.
- */
-
- int main(void)
- {
- clrscr(); /* Erases data from the screen */
-
- /* The following prints data to the screen in a blueish color, ~centered */
-
- int tclr;
- tclr=3;
- {
- printf("\a");
- textcolor(tclr);
- cprintf("\n\n\n\n\n\n Initializing Flight Gear v1.0b...\r\n\n");
- cprintf(" Copyright (c)1996 David Murr. All rights reserved.");
- }
-
- /* Waits for the user to press <enter> before proceeding to Options menu */
-
- /* This is where the problem is... it just scrolls down as you press
- * ENTER... should I be using some other escape sequence besides the
- * carriage return... if so, how do I trap ENTER?
- */
-
- printf("\n\n\n Please Press Enter.");
-
- #define string "\r"
- scanf(string);
-
- if (string="\r"");
- {
- clrscr();
- printf(" - Options Menu - \n\n");
- }
-
- }
-
- /*
- * Flight Gear History:
- * - v0.01: Initial release to alpha testers
- */
-
- /* End of source */
- --
- _________ __
- / __/ __/ |/ /__ _ _____ | Editor - FSNews
- / _/_\ \/ -_) |/|/ (_-< | http://user.aol.com/fsnews/
- /_/ /___/_/|_/\__/|__,__/___) | The leader in flight-sim news!
-